<template>
</template>

<script>
	export default {
		data() {
			return {
				page:null,
			}
		},
		created() {
			this.page = window.location.href
			this.page = encodeURIComponent(this.page);
			alert(this.page)
			this.login()
		},
		methods: {
			login(){
				this.$http.post(
					"/api/login?page="+this.page
				).then(response => {
					window.location.href = response.data.data;
				}).catch(error => {
					
				}).finally(() => {
					
				});
			}
		},
	}
</script>

<style>
</style>
